﻿using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using QuickGraph;

namespace Flux_Balance_Analysis.Graphs
{
    public class FBAEdge : Edge<FBAVertex>, INotifyPropertyChanged
    {
        public string Name
        {
            get { return name; }
            set { name = value; NotifyPropertyChanged("Name"); }
        }

        private string name;

        public FBAEdge(string name, FBAVertex source, FBAVertex target)
            : base(source, target)
        {
            Name = name;
        }

        #region INotifyPropertyChanged Implementation

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(string info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }

        #endregion
    }
}
